﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="UpdateStaff.aspx.cs" Inherits="SWEN_HMS.StaffHousekeepingModule.UpdateStaff" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <style type="text/css">
        .auto-style2
        {
            width: 100%;
        }
        .auto-style3
        {
            width: 103px;
        }
        .auto-style6
        {
            width: 122px;
        }
        .auto-style7
        {
            width: 122px;
            text-align: right;
            font-size: small;
        }
        .auto-style8
        {
            width: 198px;
        }
        .auto-style9
        {
            width: 103px;
            height: 28px;
        }
        .auto-style10
        {
            width: 122px;
            text-align: right;
            font-size: small;
            height: 28px;
        }
        .auto-style11
        {
            width: 198px;
            height: 28px;
        }
        .auto-style12
        {
            height: 28px;
        }
        .auto-style13
        {
            width: 103px;
            height: 26px;
        }
        .auto-style14
        {
            width: 122px;
            text-align: right;
            font-size: small;
            height: 26px;
        }
        .auto-style15
        {
            width: 198px;
            height: 26px;
        }
        .auto-style16
        {
            height: 26px;
        }
    </style>
</asp:Content>
<asp:Content ID="Content6" runat="server" contentplaceholderid="pageTitlePHolder">
    <span class="auto-style1" style="color: #000000">Update Staff Page</span>
</asp:Content>
<asp:Content ID="Content7" runat="server" contentplaceholderid="ContentPlaceHolder1">
        <asp:Panel ID="Panel1" runat="server" CssClass="newStyle1">
            <br />
            <table class="auto-style2">
                <tr>
                    <td class="auto-style3">&nbsp;</td>
                    <td class="auto-style6">&nbsp;</td>
                    <td class="auto-style8">&nbsp;</td>
                    <td>&nbsp;</td>
                </tr>
                <tr>
                    <td class="auto-style3">&nbsp;</td>
                    <td class="auto-style6">&nbsp;</td>
                    <td class="auto-style8">
                        <asp:Label ID="lblerrrorMessage" runat="server" ForeColor="Red"></asp:Label>
                    </td>
                    <td>&nbsp;</td>
                </tr>
                <tr>
                    <td class="auto-style3">&nbsp;</td>
                    <td class="auto-style6">&nbsp;</td>
                    <td class="auto-style8">&nbsp;</td>
                    <td>&nbsp;</td>
                </tr>
                <tr>
                    <td class="auto-style3"></td>
                    <td class="auto-style7">Staff ID:</td>
                    <td class="auto-style8">
                        <asp:Label ID="lblStaffID" runat="server"></asp:Label>
                    </td>
                    <td></td>
                </tr>
                <tr>
                    <td class="auto-style9"></td>
                    <td class="auto-style10">Staff Name:</td>
                    <td class="auto-style11">
                        <asp:TextBox ID="tbxStaffName" runat="server" Width="147px"></asp:TextBox>
                    </td>
                    <td class="auto-style12">
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="tbxStaffName" Display="Dynamic" ErrorMessage="Please enter the staff name." ForeColor="Red"></asp:RequiredFieldValidator>
                    </td>
                </tr>
                <tr>
                    <td class="auto-style3">&nbsp;</td>
                    <td class="auto-style7">Date Of Birth(DOB):</td>
                    <td class="auto-style8">
                        <asp:TextBox ID="tbxDOB" runat="server" Width="147px"></asp:TextBox>
                    </td>
                    <td>&nbsp;</td>
                </tr>
                <tr>
                    <td class="auto-style3">&nbsp;</td>
                    <td class="auto-style7">Email:</td>
                    <td class="auto-style8">
                        <asp:TextBox ID="tbxEmail" runat="server" Width="147px"></asp:TextBox>
                    </td>
                    <td>
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="tbxEmail" Display="Dynamic" ErrorMessage="Please enter staff email." ForeColor="Red"></asp:RequiredFieldValidator>
                        <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" ControlToValidate="tbxEmail" Display="Dynamic" ErrorMessage="Invalid Email." ForeColor="Red" ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*"></asp:RegularExpressionValidator>
                    </td>
                </tr>
                <tr>
                    <td class="auto-style3">&nbsp;</td>
                    <td class="auto-style7">Contact Number:</td>
                    <td class="auto-style8">
                        <asp:TextBox ID="tbxContact" runat="server" Width="147px"></asp:TextBox>
                    </td>
                    <td>
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" ControlToValidate="tbxContact" Display="Dynamic" ErrorMessage="Please enter staff Contact no." ForeColor="Red"></asp:RequiredFieldValidator>
                    </td>
                </tr>
                <tr>
                    <td class="auto-style3">&nbsp;</td>
                    <td class="auto-style7">Address:</td>
                    <td class="auto-style8">
                        <asp:TextBox ID="tbxAddress" runat="server" TextMode="MultiLine" Width="147px"></asp:TextBox>
                    </td>
                    <td>&nbsp;</td>
                </tr>
                <tr>
                    <td class="auto-style13"></td>
                    <td class="auto-style14">Bank Type:</td>
                    <td class="auto-style15">
                        <asp:DropDownList ID="ddlBank" runat="server">
                            <asp:ListItem>POSB Current</asp:ListItem>
                            <asp:ListItem>POSB Saving</asp:ListItem>
                            <asp:ListItem>OCBC Current</asp:ListItem>
                            <asp:ListItem>OCBC Saving</asp:ListItem>
                            <asp:ListItem>DBS Current</asp:ListItem>
                            <asp:ListItem>DBS Saving</asp:ListItem>
                        </asp:DropDownList>
                    </td>
                    <td class="auto-style16">
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" ControlToValidate="ddlBank" Display="Dynamic" ErrorMessage="Please select a bank type." ForeColor="Red"></asp:RequiredFieldValidator>
                    </td>
                </tr>
                <tr>
                    <td class="auto-style3">&nbsp;</td>
                    <td class="auto-style7">Account Number:</td>
                    <td class="auto-style8">
                        <asp:TextBox ID="tbxAccountNo" runat="server" Width="147px"></asp:TextBox>
                    </td>
                    <td>
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator8" runat="server" ControlToValidate="tbxAccountNO" Display="Dynamic" ErrorMessage="Please enter staff account no." ForeColor="Red"></asp:RequiredFieldValidator>
                    </td>
                </tr>
                <tr>
                    <td class="auto-style3">&nbsp;</td>
                    <td class="auto-style7">Position:</td>
                    <td class="auto-style8">
                        <asp:DropDownList ID="ddlPosition" runat="server" AutoPostBack="True" OnSelectedIndexChanged="ddlPosition_SelectedIndexChanged">
                            <asp:ListItem>Reception</asp:ListItem>
                            <asp:ListItem>General Maintenance</asp:ListItem>
                            <asp:ListItem>Security</asp:ListItem>
                            <asp:ListItem>Manager</asp:ListItem>
                            <asp:ListItem>Room Maintenance</asp:ListItem>
                            <asp:ListItem>Estate Maintenance</asp:ListItem>
                        </asp:DropDownList>
                    </td>
                    <td>
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator9" runat="server" ControlToValidate="ddlPosition" Display="Dynamic" ErrorMessage="Please select a position" ForeColor="Red"></asp:RequiredFieldValidator>
                    </td>
                </tr>
                <tr>
                    <td class="auto-style3">&nbsp;</td>
                    <td class="auto-style7">Access Level:</td>
                    <td class="auto-style8">
                        <asp:TextBox ID="tbxAccess" runat="server" Width="145px"></asp:TextBox>
                    </td>
                    <td>
                        &nbsp;</td>
                </tr>
                <tr>
                    <td class="auto-style3">&nbsp;</td>
                    <td class="auto-style6">&nbsp;</td>
                    <td class="auto-style8">&nbsp;</td>
                    <td>&nbsp;</td>
                </tr>
                <tr>
                    <td class="auto-style3">&nbsp;</td>
                    <td class="auto-style6">&nbsp;</td>
                    <td class="auto-style8">&nbsp;</td>
                    <td>&nbsp;</td>
                </tr>
                <tr>
                    <td class="auto-style3">&nbsp;</td>
                    <td class="auto-style6">&nbsp;</td>
                    <td class="auto-style8">
                        <asp:Button ID="btnUpdate" runat="server" CssClass="btnCSS" Text="Update" OnClick="btnUpdate_Click" />
                        &nbsp;
                        <asp:Button ID="btnCancel" runat="server" CssClass="btnCSS" Text="Cancel" Width="82px" OnClick="btnCancel_Click" CausesValidation="False" />
                    </td>
                    <td>&nbsp;</td>
                </tr>
            </table>
            <br />
            <br />
            <br />
            <br />
            &nbsp;&nbsp;<br />
        </asp:Panel>
    </asp:Content>

